jsx3.Class.defineClass(
        "tibco.admin.monitormanage.uicomponents.page.deployment.tabContent.overview.Overview", //the full name of the class to create
        jsx3.lang.Object, //  extends
        [tibco.admin.monitormanage.uicomponents.page.deployment.ServiceUnitTabInterface], // implements
        function (plugin) {
        
            plugin.instance = null

            plugin.getInstance = function(args) {
                if(!this.instance) {
                    this.instance = new tibco.admin.monitormanage.uicomponents.page.deployment.tabContent.overview.Overview();
                }
                return this.instance;
            }

            plugin.prototype.getNamespace = function() {
               return "tibco.admin";
            }
            
            plugin.prototype.getTabText = function() {
				return tibco.admin.Main.getServer().getDynamicProperty("@MM@general@OverviewTitle");
            	//return "Overview";
            }

            plugin.prototype.loadComponent = function(parent) {
                var overviewBlock = tibco.admin.Main.loadUIResource(parent, this.getNamespace(), "tibco/admin/monitormanage/uicomponents/page/deployment/tabContent/overview/components/overview.xml", true);
                
                var infoPane = overviewBlock.getDescendantOfName("overviewInfoPane");
        		if(!tibco.admin.monitormanage || !tibco.admin.monitormanage.uicomponents || !tibco.admin.monitormanage.uicomponents.text || !tibco.admin.monitormanage.uicomponents.text.serviceUnitOverviewInfo || !tibco.admin.monitormanage.uicomponents.text.serviceUnitOverviewInfo.ServiceUnitOverviewInfo)
                { tibco.admin.Main.loadClass("tibco/admin/monitormanage/uicomponents/text/serviceUnitOverviewInfo/ServiceUnitOverviewInfo.js", this.getNamespace()); }
                var infoPaneObj = tibco.admin.Main.loadUIResource(infoPane, this.getNamespace(), "tibco/admin/monitormanage/uicomponents/text/serviceUnitOverviewInfo/components/serviceUnitOverviewInfo.xml", true);
                infoPaneObj.setUpComponent();
                
                var bottomPane = overviewBlock.getDescendantOfName("overviewBottomPane");
        		if(!tibco.admin.monitormanage || !tibco.admin.monitormanage.uicomponents || !tibco.admin.monitormanage.uicomponents.table || !tibco.admin.monitormanage.uicomponents.table.nodes || !tibco.admin.monitormanage.uicomponents.table.nodes.Nodes)
                { tibco.admin.Main.loadClass("tibco/admin/monitormanage/uicomponents/table/nodes/Nodes.js", this.getNamespace()); }
                var nodesTable = tibco.admin.Main.loadUIResource(bottomPane, this.getNamespace(), "tibco/admin/monitormanage/uicomponents/table/nodes/components/nodes.xml", true);   
                var screenId = tibco.admin.monitormanage.uicomponents.page.deployment.Deployment.serviceUnitScreenId;
                nodesTable.setUpComponent("_MM_dply", true, false, tibco.admin.monitormanage.uicomponents.page.deployment.Deployment.serviceUnitNodesCacheId, tibco.admin.monitormanage.uicomponents.page.deployment.Deployment.serviceUnitInfoCacheSubject, false, false, screenId, true);
            }
            
            plugin.prototype.updateComponent = function(serviceUnitId, serviceUnitType) {
            	// this method does not have to do anything considering the component update is
            	// handled by the components within this component
                //jsx3.log("ServiceUnit overview tab with serviceUnitId = " + serviceUnitId + " and type = " + serviceUnitType);
            }
            
            plugin.prototype.tabClicked = function(objEvent) {
            	tibco.admin.monitormanage.uicomponents.dropdown.timeframe.Timeframe.showTimeframe(tibco.admin.monitormanage.uicomponents.page.deployment.Deployment.serviceUnitScreenId);
        	}

        });